import axios from 'axios'
import { LIST_DATA } from './actionTypes'

export const getListData = (page) => {
  return (dispatch) => {
    axios.get('/json/list.json').then(res => {
      dispatch({
        type: LIST_DATA,
        currentPage: page,
        obj: res.data
      })
    })
  }
}
